package com.atguigu.gmall.seckill.service.biz;

import com.atguigu.gmall.common.result.ResultCodeEnum;

public interface SeckillBizService {

    /**
     * 生成指定商品的秒杀码
     * @param skuId
     * @return
     */
    String generateSeckillCode(Long skuId);

    /**
     * 秒杀下单
     * @param skuId
     * @param code
     */
    void createSeckillOrder(Long skuId, String code);

    /**
     * 检查这个订单的状态
     * @param skuId
     * @return
     */
    ResultCodeEnum checkSeckillOrder(Long skuId);
}
